<?php
/**
 * Thickbox View Helper
 * This is a failed view helper that I probably need to just get rid of.
 *
 * @package     Visi
 * @subpackage  View Helpers
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2011 Coalition Technologies <joel@coalitiontechnologies.com>
 * @version     $Id$
 */
class Visi_View_Helper_Thickbox extends Zend_View_Helper_Abstract {

    public function thickbox($linkVal, $url, $width = null, $height = null) {
    
        $this->view->includeThickbox();
        $params = array();
        if (!is_null($width)) {
            $params['width'] = $width;
        }
        if (!is_null($height)) {
            $params['height'] = $height;
        }
        $query = '';
        foreach ($params as $key => $val) {
            $query .= '&' . $key . '=' . $val;
        }
        return '<a href="' . $url . '?' . $query . '" class="thickbox">' . $linkVal . '</a>';
    
    }

}